Pagerduty REST API Swagger spec?

Is there a swagger/openapi json file or endpoint available for the Pagerduty REST APIs? I’d like to import it into Postman ( aware of the Postman<->Pagerduty integration for the web UI already )

Thanks!
Brooke

1 Like

Yep, the Swagger v2 spec for the REST API is available here:

https://api-reference.pagerduty.com/output.json

Note that this may change in the future, so be sure to check the forums and developer.pagerduty.com for updates!

1 Like

I’m trying to access that link with pyswagger, but get a 403. It returns from curl.

from pyswagger import App
app = App.create('https://api-reference.pagerduty.com/output.json')

Traceback (most recent call last):
  File "./pyswagger_test.py", line 7, in <module>
  app = App.create('https://api-reference.pagerduty.com/output.json')
  .
  .
urllib.error.HTTPError: HTTP Error 403: Forbidden

Is an auth token or specific header required to read this ?

Hi @WTP, this shouldn’t require any token, so that’s strange that you are getting a 403 error. Can you confirm that you followed the installation requirements outlined in the pyswagger docs?